package com.heima.model.comment.pojos;

import com.heima.model.common.annotation.IdEncrypt;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("ap_comment")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ApComment implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private Integer authorId;

    private String authorName;

    @IdEncrypt
    private Long entryId;

    private Integer type;

    private String content;

    private Integer likes;

    private Integer reply;

    private Integer flag;

    private Date createdTime;

    private Date updatedTime;

    private String image;

    private Integer channelId;

    private Integer ord;

    private Boolean status;
}
